package net.wangds.utils;

import java.util.Random;

public class NonceUtils {

    private static String base = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRESUVWXYZ";

    public static String generage(int size){
        StringBuffer sb = new StringBuffer();
        Random r = new Random();
        for(int i=0;i<size;i++){
            sb.append(base.charAt(Math.abs(r.nextInt())%base.length()));
        }
        return sb.toString();
    }

}
